package com.cch.cooperation.api.bookkeepping.dto;

import com.cch.cooperation.common.page.PageList;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


/**
 * 记账分页列表DTO
 *
 * @author cch
 */
@ApiModel("记账分页列表DTO")
@Data
public class BookkeepingPageListDTO extends PageList<BookkeepingGroupDTO> {

    @ApiModelProperty("总收入")
    private BigDecimal totalIncome;

    @ApiModelProperty("总支出")
    private BigDecimal totalExpense;

    public BookkeepingPageListDTO(Long total, List<BookkeepingGroupDTO> rows) {
        super(total, rows);
    }

}
